import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        name: 'index',
        redirect: { name: 'home' },
    },
    {
        path: '/home',
        name: 'home',
        component: ()=>import('../views/index.vue')

    }, {
        path: '/timeOut',
        name: 'hotimeOutme',
        component: ()=>import('../views/timeOut.vue')

    }
]

const router = createRouter({
    history: createWebHashHistory(import.meta.env.VITE_BASE_PATH),
    routes
})

export default router